home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Technotools
/
Technotools (Chestnut CD-ROM)(1993).ISO
/
lang_c
/
c_windw
/
display1.c
< prev
next >
Wrap
Text File
|
1987-12-09
|
1KB
|
27 lines
/* (c) Marietta Systems, Inc. 1987
* All rights reserved
*
* demonstration program for the display function
*/
#include "mtest.h"
void main() {
int x = 2, y = 5, a = 3, b = 41;
byte text[80];
/* */
clr_scrn("Display test - 1"); idleloop(30);
sprintf(text, "The value of a is %d; the value of b is %d", a, b);
display(text, 20, 20, blink); idleloop(30);
mk_wndw(3,30, 10,55,"The window is here"); idleloop(30);
display("now is the time", x++, y--, high); idleloop(30);
display("for all good men", x++, y--, low); idleloop(30);
display("to come to the aid", x++, y, reverse); idleloop(30);
display("of their ", x++, y, alt_low); idleloop(30);
display("country.", 0, 0, alt_high); idleloop(30);
display("or is that 'party'?", x, --y, alt_reverse);
display("**",0,0,blank);
idleloop(30); display("xxxxxxxxxxxxxxxxxxxxxxxxxxxx",0,0,blink);
/* */
while (!disp_qry(" Ready to finish"));
goodbye(0);
}